<!DOCTYPE html>
<html lang="id">
  
    <head>
        <meta name="robots" content="noindex">
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">        
        
        <link rel="icon" href="<?php echo base_url('themes/apotek/images/favicon.png') ?>">

        <title>Masuk &#8212; <?php echo site_title(); ?></title>
        <meta name="description" content="<?php echo site_desc(); ?>">
        <meta name="author" content="<?php echo site_title(); ?>">

        <link href="<?php echo base_url('themes/apotek/css/bootstrap.css'); ?>" rel="stylesheet">
        <link href="<?php echo base_url('themes/apotek/fonts/fontawesome/css/font-awesome.css'); ?>" rel="stylesheet">
        <link href="<?php echo base_url('themes/apotek/css/custom.css'); ?>" rel="stylesheet">
        <link href="<?php echo base_url('themes/apotek/bundle/radio-checkbox/build.css'); ?>" rel="stylesheet">

        <link href="<?php echo base_url('themes/apotek/css/non-responsive.css'); ?>" rel="stylesheet">

        <!--[if lt IE 9]><script src="<?php echo base_url('themes/apotek/js/ie8-responsive-file-warning.js'); ?>"></script><![endif]-->

        <!--[if lt IE 9]>
          <script src="<?php echo base_url('themes/apotek/js/html5shiv.min.js'); ?>"></script>
          <script src="<?php echo base_url('themes/apotek/js/respond.min.js'); ?>"></script>
        <![endif]-->
        
        <script src="<?php echo base_url('themes/apotek/js/jquery.min.js'); ?>"></script>
    </head>

    <body>
    <script>
      window.onload = function() {
        document.getElementById("identity").focus();
      };
    </script>

      <!-- Fixed navbar -->
      <div class="navbar-fixed-top">
        <div class="top-putih">
          <div class="container">
            <div class="logo">
            <center>
              <img src="<?php echo base_url('themes/apotek/images/logo.png'); ?>">
            </center>
            </div>
          </div>
          <div class="clearfix"></div>
        </div>
        <div class="navbar-login">
          
        </div>
      </div>

      <div class="container">
        <div class="row">
          <div class="col-xs-4 col-xs-offset-4">
            <div class="login-panel panel panel-default">
              <div class="panel-heading text-center">
                 <h1 class="judul-login">Masuk</h1>
                 <h3 class="judul-login-sm"><?php echo site_title(); ?></h3>
              </div>
              <div class="panel-body">
                <?php echo form_open('login'); ?>

                  <?php echo display_flash(); ?>

                  <div class="input-group margintop10">                    
                    <?php echo form_input($identity);?>
                    <span id="id" class="input-group-addon" style="background-color:transparent;border-left:transparent;color:#ccc;"><i class="glyphicon glyphicon-user"></i></span>
                  </div>
                  <div class="input-group margintop10">
                    <?php echo form_input($password);?>
                    <span id="ps" class="input-group-addon" style="background-color:transparent;border-left:transparent;color:#ccc;"><i class="glyphicon glyphicon-lock"></i></span>
                  </div>

                  <div class="checkbox checkbox-success">
                    <input type="checkbox" name="remember" class="styled" id="remember" value="1">
                    <label for="remember">Ingat Saya</label>
                  </div>
                  
                  <?php if (isset($_SERVER['HTTP_REFERER'])) {?>
                    <input type="hidden" name="redirurl" value="<?php echo $_SERVER['HTTP_REFERER'];?>" />
                  <?php }?>

                  <div class="footer-login">
                      <button type="submit" class="btn btn-warning full-width">
                          <span class="glyphicon glyphicon-log-in"></span>&nbsp;&nbsp;Masuk
                      </button>
                  </div>
                <?php echo form_close(); ?>
              </div>
            </div>
            
          </div>
        </div>
      </div>

    <footer>
      <div id="footer" class="navbar-fixed-bottom">
        <div class="container text-center">
          Copyright &copy; <?php echo date("Y"); ?> <?php echo site_title();?>. All Right Reserved.
        </div>
      </div>
    </footer>

    <script src="<?php echo base_url('themes/apotek/js/bootstrap.min.js'); ?>"></script>

  </body>

</html>